package com.wms.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("库存管理")
@Validated
public class Stock {
    @ApiModelProperty("创建人id")
    String createBy;
    @ApiModelProperty("更新人id")
    String updateBy;
    @ApiModelProperty(value = "库存id",required = true)
    @NotNull
    Integer id;
    @ApiModelProperty("库存上限")
    Integer upLine;
    @ApiModelProperty("安全库存")
    Integer safeStock;
    @ApiModelProperty("安全库存")
    Integer offLine;
    @ApiModelProperty("货架期")
    Integer shelfLife;
    @ApiModelProperty("单位 如:月,天,时")
    String unit;
    @ApiModelProperty(value = "库存数量",hidden = true)
    Integer num;
    @ApiModelProperty(value = "可用库存")
    Integer availableNum;
    @ApiModelProperty(value = "冻结数量")
    Integer freezeQuantity;
}
